
const { adds, deleteByid, updateByid, gets, login, sign, codes } = require('../servers/userSer.js')
module.exports = (router) => {
  /* GET home page. */
  // router.get('/user', function (req, res, next) {
  //   gets(req, res)

  // });
  // router.post('/user', function (req, res, next) {
  //   adds(req, res)

  // });
  // router.delete('/user', function (req, res, next) {
  //   deleteByid(req, res)

  // });
  // router.put('/user', function (req, res, next) {
  //   updateByid(req, res)
  // });

  router.get('/codes', function (req, res, next) {
    // 验证码
    codes(req, res)
  })


  router.post('/sign', function (req, res, next) {
    //注册的业务
    sign(req, res)

  })

  router.post('/login', function (req, res, next) {
    //登录的业务
    login(req, res)

  })


}


